package org.cuit.lmq.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.cuit.lmq.constants.enums.BodyStatusEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Seon
 * @since 2023-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_body_info")
public class BodyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    private Long userId;

    /**
     * 用户身高数据
     */
    private Double height;

    /**
     * 体重，单位为kg
     */
    private Double weight;

    /**
     * 用户的bmi数据
     */
    private Double bmi;

    /**
     * 体脂率，单位为百分比
     */
    private Double fatRate;

    /**
     * 身体状态，有五个状态：弱不禁风，多吃点啦，美丽帅气的，肥嘟嘟，真得减肥了吧
     */
    private BodyStatusEnum bodyStatus;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
